# 构建镜像，执行命令：【docker build -t makunet:1.0 .】
FROM eclipse-temurin:17-jre

# 设置时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone


RUN mkdir -p /pig-boot

WORKDIR /pig-boot

EXPOSE 9999

ADD ./pig-boot.jar  ./
ADD ./application.yml    ./


CMD java -Xms512m -Xmx512m -Djava.security.egd=file:/dev/./urandom  -Dfile.encoding=utf-8 -jar pig-boot.jar --spring.config.location=file:application.yml


